package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Address;
import com.ruoyi.system.domain.Area;
import com.ruoyi.system.mapper.AddressMapper;
import com.ruoyi.system.mapper.AreaMapper;
import com.ruoyi.system.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public Area getAreaById(Integer id) {
        Area areaById = areaMapper.getAreaById(id);
        return areaById;
    }

    @Override
    public List<Area> getArea(Integer pid) {
        List<Area> area = areaMapper.getArea(pid);
        return area;
    }
}
